home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 November / PCWNOV08.iso / Software / Freeware / Mini Map Sidebar 0.3 / mini_map_sidebar-0.3.0-fx.xpi / chrome / content / addKmlDlg.xul < prev    next >
Encoding:
Extensible Markup Language  |  2008-02-20  |  1.5 KB  |  59 lines

  1. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  2. <!DOCTYPE overlay SYSTEM "chrome://minimap/locale/addressDlg.dtd" >
  3.  
  4. <dialog id="addAddress"
  5.                 title = "&minimap.addaddress.dialogKML;"
  6.                 xmlns:html="http://www.w3.org/1999/xhtml"
  7.                 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  8.                 minwidth="320"
  9.                 onload="onLoad();"
  10.                 ondialogaccept="return onAccept();"
  11.                 ondialogcancel="return onCancel();"
  12.                 button="accept,cancel">
  13.  
  14. <script type="application/x-javascript">
  15. var $ = function(x) { return    document.getElementById(x); }
  16.  
  17. var gParams;
  18.  
  19. function onLoad() {
  20.     gParams    = window.arguments[0];
  21.     $('bpaddaddress-title').value = gParams.title; 
  22.     $('bpaddaddress-url').value = gParams.url;
  23. }
  24.  
  25. function onCancel() {
  26.     gParams.cancelled = true;
  27.     return true;
  28. }
  29.  
  30. function onAccept() {
  31.     //dump("insertImage.onAccept()\n");
  32.     gParams.title = $('bpaddaddress-title').value;
  33.     gParams.url = $('bpaddaddress-url').value;
  34.     return true;
  35. }
  36.  
  37. </script>
  38.     <groupbox>
  39.         <caption label="&minimap.addaddress.descriptionKML;"/>
  40.         <grid>
  41.             <columns>
  42.                 <column/>
  43.                 <column flex="1"/>
  44.             </columns>
  45.             <rows>
  46.                 <row align="center">
  47.                     <description value="&minimap.addaddress.title;"/>
  48.                     <textbox id="bpaddaddress-title" value=""/>
  49.                 </row>
  50.                 <row align="center">
  51.                     <description value="&minimap.addaddress.urlKML;"/>
  52.                     <textbox id="bpaddaddress-url" value=""/>
  53.                 </row>
  54.             </rows>
  55.         </grid>
  56.         <separator height="5px"/>
  57.     </groupbox>
  58. </dialog>
  59.